/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       combat_context_army.h

	$Header: /game/combat_context_army.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( COMBAT_CONTEXT_ARMY_H_INCLUDED )
#define COMBAT_CONTEXT_ARMY_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "combat_context_adv_object.h"

class t_combat_context_army : public t_combat_context_adv_object
{
public:
	t_combat_context_army();
	t_combat_context_army( t_army*				  attacker, 
						   t_army*				  defender,
						   t_adv_map_point const& original_defender_position );

	virtual t_combat_context_type	get_type() const;
	virtual void					on_combat_end( t_combat_result result );
	virtual bool					read( std::streambuf&  stream,
										  t_adventure_map& adventure_map );
	virtual bool					write( std::streambuf& stream ) const;
protected:
	t_army_ptr		m_defending_army;
	bool			m_from_saved_game;
	t_adv_map_point m_original_defender_position;
};

#endif // SAVED_COMBAT_CONTEXT_ADV_OBJECT_H_INCLUDED